package routers

import (
	"chuanyou/controllers"

	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/Login", &controllers.MainController{}, "*:Login")
	beego.Router("/Zhuce", &controllers.MainController{}, "*:Zhuce")
	beego.Router("/Zhuanzhang", &controllers.MainController{}, "*:Zhuanzhang")

	beego.Router("/yanzhengLogin", &controllers.MainController{}, "*:YanZhengLogin")
	// 注册
	beego.Router("/register", &controllers.MainController{}, "*:Register")
	// 处理注册
	beego.Router("/doregister", &controllers.MainController{}, "*:DoRegister")

	beego.Router("/SendEmail", &controllers.MainController{}, "*:SendEmail")

	beego.Router("/Updateinfo", &controllers.MainController{}, "*:Updateinfo")
	beego.Router("/Updatepswd", &controllers.MainController{}, "*:Updatepswd")
	beego.Router("/DoUpdateInfo", &controllers.MainController{}, "*:DoUpdateInfo")
}
